Quickly Map A Network Drive

In Windows Server 2008, you connect to a network drive by mapping to it using NET USE and the following syntax:

net use Device \\ComputerName\ShareName

In this example, 'Device' is where you specify the drive letter. Or you can use * to specify that you want to use the next available drive letter. And \\ComputerName\ShareName is the UNC path to the share. So, in practice, it looks something like this:

net use g: \\ROMEO\DOCS
net use * \\ROMEO\DOCS

Note that you should add the /Persistent:Yes option to ensure that the mapped drive is available each time the user logs on.